#pragma once

#include "ErrorContainer.h"

using namespace std;

class Utils
{
public:
	static vector<string> readFile(string inFile);
	static vector<string> readFile(string inFile, bool toLower);
	static void writeFile(string outFile, vector<string> fileContent);
	static string toLower(string str);
	static string removeSpacesAndTabs(string str);
	static bool isInteger(string text);
	static bool isFloat(string text);
	static string doubleToStr(double num);
	static string doubleStrToEFormatStr(string str);
	static string IntToStr(int num);
	static vector<string> margeStrVectors(vector<string> v1, vector<string> v2);
	static bool findStringInVector(string str, vector<string> v);
	static string getFirstWord(string str);
	static vector<string> splitString(string str, string separator);
	static vector<string> splitString(string str, vector<string> separators);
	static vector<string> splitStringWithTabAndSpace(string str);
	static vector<string> splitStringWithTabAndSpaceWithoutStr(string str);
	static vector<string> splitStringWithoutRemove(string str, string separator);
	static vector<string> splitStringWithoutRemove(string str, vector<string> separators);
	static vector<string> replaceOperators(string str);
	static string createCorrectString(string str);
	static string replaceStrMod(string text, string before, string after, size_t startIndex);
	static string replaceStr(string text, string before, string after);
};